﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchPlanHeader.ascx.vb"
    Inherits="WebForm_ManageWorkContent_SearchPlanHeader" %>
<%@ Register Namespace="My" TagPrefix="cc1" %>
<%@ Register Src="~/WebForm/CommonControl/AnnualControl.ascx" TagName="AnnualControl"
    TagPrefix="My" %>
<table>
    <tr>
        <td align="right">
            <asp:Label ID="lblAnnual" runat="server" meta:resourcekey="lblAnnual"></asp:Label>
        </td>
        <td align="left">
            <My:AnnualControl ID="AnnualControl1" runat="server" />
        </td>
    </tr>
    <tr>
        <td align="right">
            <asp:Label ID="lblOrganization" runat="server" meta:resourcekey="lblOrganization"></asp:Label>
        </td>
        <td align="left">
            <asp:DropDownList ID="ddlOrganization" runat="server" AutoPostBack="false">
            </asp:DropDownList>
        </td>
        <td align="left">
            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
            <asp:Button ID="btnAddPlanItem" runat="server" meta:resourcekey="btnAddPlanItem" />
            <asp:Button ID="btnAddNextPlan" runat="server" meta:resourcekey="btnAddNextPlan" />
        </td>
    </tr>
</table>
<br />
<My:MyGridView ID="gv" runat="server" SkinID="pager" AllowPaging="True" meta:resourcekey="gv"
    AllowHoverSelect="False" DataKeyNames="PlanHeaderID" AllowHoverEffect="True"
    MySortDirection="Ascending">
    <Columns>
        <asp:BoundField DataField="tYear" meta:resourcekey="bfYear" />
        <asp:BoundField DataField="OrganizationName" meta:resourcekey="bfUOrganizationID" />
        <asp:BoundField DataField="PersonInCharge" meta:resourcekey="bfPersonInCharge" />
        <asp:BoundField DataField="UpdateDate" meta:resourcekey="bfUpdateDate" />
        <asp:TemplateField meta:resourcekey="bfDownload">
            <itemtemplate>
                                    <asp:LinkButton id="lknDownload" Text='<%# Eval("FileName") %>' runat="server" CommandArgument='<%# Eval("PlanHeaderID") %>' CommandName="MyDownload"></asp:LinkButton> 
                                </itemtemplate>
            <itemstyle horizontalalign="Center" />
        </asp:TemplateField>
        <asp:TemplateField>
            <itemtemplate>
                <asp:Label id="lblUOrganizationID" runat="server" Text='<%# Eval("OrganizationID") %>' Visible="False"></asp:Label> 
                                    <asp:LinkButton id="lknEdit" meta:resourcekey="lknEdit" runat="server" CommandArgument='<%# Eval("PlanHeaderID") %>'  CommandName="MyEdit"></asp:LinkButton> 
                                </itemtemplate>
            <itemstyle horizontalalign="Center" />
        </asp:TemplateField>
    </Columns>
</My:MyGridView>
